import { Boolean, Code, CreateDate, Entity, Jsonb, PrimaryUuid, UpdateDate, Uuid } from "@sker/core";

@Entity({ name: 'sys_task_log' })
export class SysTaskLog {
    @PrimaryUuid({
        primaryKeyConstraintName: "PK_TASK_LOG_ID"
    })
    id: string;

    @Jsonb({ nullable: true, default: {} })
    result: any;

    @Uuid()
    task_id: string;

    @Boolean({ default: false })
    success: boolean;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}